Countdown Shooting

  • Function:

    util.get_image(timeout, port, flip)
    
  • Description: perform countdown shoot and save image files

  • Required parameter:

    • timeout: delay time of shooting, unit: second
    • port: camera port
    • flip: flip the picture, not flip by default
  • Return:
    • image_data: image data
  • Example

    image_data = util.get_image(timeout=5, port=1, flip=False)
    print(image_data)
    

    Use Port 1 of camera to shoot, and set the delay time as 5 seconds.

results matching ""

    No results matching ""